#include "ComponenteBuffer.h"

ComponenteBuffer::ComponenteBuffer(offset offsetInicio) {

	this->offsetInicial = offsetInicio;
}

ComponenteBuffer::~ComponenteBuffer() {


}

offset ComponenteBuffer::getOffsetInicio() const {

	return this->offsetInicial;
}

offset ComponenteBuffer::getOffsetFinal() const {

	offset offFinal = this->offsetInicial + this->bytes.getTamanio() - 1;

	return offFinal;
}

Bytes& ComponenteBuffer::getBytesAlmacenados() {

	return this->bytes;
}
